<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>React Origin</title>
</head>

<body>
  <div id="root"></div>

  <script src="https://unpkg.com/react@18.2.0/umd/react.development.js"></script>
  <script src="https://unpkg.com/react-dom@18.2.0/umd/react-dom.development.js"></script>

  <script>
    const createElement = window.React.createElement
    function App() {
      return createElement('div', {
        onClick: () => alert('hello')
      }, 'hello word')
    }

    const container = document.querySelector('#root');
    const root = window.ReactDOM.createRoot(container);
    root.render(createElement(App))
  </script>
</body>

</html>